﻿// Copyright (c) Microsoft Corporation
//
// All rights reserved. 
//
// Licensed under the Apache License, Version 2.0 (the ""License""); you may not use this file 
// except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 
// THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING 
// WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY 
// OR NON-INFRINGEMENT. 
//
// See the Apache Version 2.0 License for specific language governing permissions and limitations under the License.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TED.WindowsAzure.Unplugged.Mobile.Sync.Events;
using TED.WindowsAzure.Unplugged.Mobile.Sync.File;
using TED.WindowsAzure.Unplugged.Mobile.Sync.Folder;
using Windows.Storage;
using Windows.Storage.Streams;

namespace TED.WindowsAzure.Unplugged.Mobile.Tests.Mocks
{
    public class MockSyncFolder : ISyncFolder
    {
        public MockSyncFolder(string folderName)
        {
            FolderName = folderName;
        }

        public string FolderName {get; set;}

        public Task<IEnumerable<ISyncFile>> ReadAsync()
        {
            throw new NotImplementedException();
        }

        public Task<ISyncFile> LookupAsync(int id)
        {
            throw new NotImplementedException();
        }

        public Task<ISyncFile> LookupAsync(string name)
        {
            throw new NotImplementedException();
        }

        public Task PushAsync()
        {
            throw new NotImplementedException();
        }

        public Task PullAsync()
        {
            throw new NotImplementedException();
        }

        public Task<IStorageFile> GetInternalStorageFile(ISyncFile instance)
        {
            throw new NotImplementedException();
        }

        public Task TruncateAsync()
        {
            throw new NotImplementedException();
        }

        public Task<ISyncFile> CreateFileAsync(string fileName)
        {
            throw new NotImplementedException();
        }

        public Task<Windows.Storage.Streams.IRandomAccessStream> OpenReadAsync(ISyncFile instance)
        {
            throw new NotImplementedException();
        }

        public Task<Windows.Storage.Streams.IRandomAccessStream> OpenWriteAsync(ISyncFile instance)
        {
            throw new NotImplementedException();
        }

        public Task DeleteAsync(ISyncFile instance)
        {
            throw new NotImplementedException();
        }

        public Task InsertAndCommitAsync(ISyncFile instance, IRandomAccessStream source)
        {
            throw new NotImplementedException();
        }

        public Task UpdateAndCommitAsync(ISyncFile instance, IRandomAccessStream source)
        {
            throw new NotImplementedException();
        }

        public Task FlushAsync()
        {
            throw new NotImplementedException();
        }

        public Task CommitAsync(ISyncFile instance)
        {
            throw new NotImplementedException();
        }

        public Task CancelAsync()
        {
            throw new NotImplementedException();
        }

        public Task UndoAsync(ISyncFile instance)
        {
            throw new NotImplementedException();
        }

        public event EventHandler<SyncStartedEventArgs> PullStarted;

        public event EventHandler<SyncProgressEventArgs> PullProgressChanged;

        public event EventHandler<SyncCompletedEventArgs> PullCompleted;

        public event EventHandler<SyncStartedEventArgs> PushStarted;

        public event EventHandler<SyncProgressEventArgs> PushProgressChanged;

        public event EventHandler<SyncCompletedEventArgs> PushCompleted;

        public event EventHandler<SyncListBuiltEventArgs> SyncListBuilt;

        public event EventHandler<SyncConnectionEventArgs> SyncConnection;
    }
}
